package com.softeem.service;

import com.softeem.entity.Info;
import com.softeem.entity.User;
import com.softeem.model.LayuiPagingResult;
import com.softeem.model.UserParamModel;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

    boolean finishOrder(Integer oId);

    boolean deleteOrder(Integer oId);

    boolean isExist(String param);

    boolean addUser(User user);

    /**
     * 返回用户的状态：
     *    0：帐号或密码错误
     *    1：帐号审核通过，登录成功
     *    2：该帐号正在审核
     *    3：该帐号审核失败
     * **/
    Integer login(User user,String isKeep, HttpServletRequest req, HttpServletResponse resp);

    LayuiPagingResult<User> getUsersDynamical(UserParamModel paramModel);

    User getUserById(Integer id);

    boolean updateUser(User user);

    boolean reCheckUser(Integer id);

    boolean deleteUserById(Integer id);
}
